package com.daoeping.service.impl;

import com.daoeping.dao.Bzn_questionDAO;
import com.daoeping.data.Bzn_question;
import com.daoeping.domain.JsonData;
import com.daoeping.domain.Page;
import com.daoeping.domain.TableData;
import com.daoeping.service.Bzn_questionService;

public class Bzn_questionServiceImpl implements Bzn_questionService {
	private Bzn_questionDAO bzn_questionDAO;
	
	public Bzn_questionDAO getBzn_questionDAO() {
		return bzn_questionDAO;
	}

	public void setBzn_questionDAO(Bzn_questionDAO bzn_questionDAO) {
		this.bzn_questionDAO = bzn_questionDAO;
	}

	@Override
	public boolean addBzn_question(Bzn_question bzn_question) {
		  return bzn_questionDAO.insertData(bzn_question);
		
	}

	@Override
	public JsonData findAllBzn_questionByPage(Page page, TableData tableData , Bzn_question bzn_question) {
		return bzn_questionDAO.findAllBzn_questionByPage(page, tableData ,bzn_question);
	}

	@Override
	public Bzn_question findBzn_questionById(Bzn_question bzn_question) {
		return bzn_questionDAO.findBzn_questionById(bzn_question);
	}

	@Override
	public boolean editBzn_question(Bzn_question bzn_question) {
		return bzn_questionDAO.updateData(bzn_question);
	}

	@Override
	public boolean delBzn_question(Bzn_question bzn_question) {
		return bzn_questionDAO.deleteData(bzn_question);
	}

}
